package com.qiao.glod.view.item;

/**
 * Created by Qiao on 2016/4/8.
 * function：
 */
public class MenuItem  {
    public static final int ITEM_TYPE_SEPARATOR = 0;
    public static final int ITEM_TYPE_TITLE = 1;
    public static final int ITEM_TYPE_MENU = 2;

    int type;
    String text;
    int resId;
    String fragemtClass;

    public MenuItem(){
        this.type = ITEM_TYPE_SEPARATOR;
    }

    public MenuItem(String text) {
        this.text = text;
        this.type = ITEM_TYPE_TITLE;
    }

    public MenuItem(String text, int resId, String fragemtClass) {
        this.text = text;
        this.resId = resId;
        this.fragemtClass = fragemtClass;
        this.type = ITEM_TYPE_MENU;
    }

    public String getText() {
        return text;
    }

    public int getResId() {
        return resId;
    }

    public String getFragemtClass() {
        return fragemtClass;
    }

    public int getType() {
        return type;
    }
}
